From a08f8937c6680c01e68b5496299127f310946625 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Mon, 28 Aug 2017 16:58:48 +0200 Subject: [PATCH] Revert "headerbar: Avoid allocating 0 visible children" This reverts commit 8c0e5adaab3f38de31d44dd50bcc8179b17c8b4a. This is actually needed since GtkHeaderBar will allocate and snapshot widget that coun_visible_children does not consider. --- gtk/gtkheaderbar.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c index bfaf41bbc2..5b8ca74abd 100644 --- a/gtk/gtkheaderbar.c +++ b/gtk/gtkheaderbar.c @@ -932,10 +932,6 @@ gtk_header_bar_size_allocate (GtkWidget *widget, direction = gtk_widget_get_direction (widget); nvis_children = count_visible_children (bar); - - if (nvis_children == 0) - return; - sizes = g_newa (GtkRequestedSize, nvis_children); width = allocation->width - nvis_children * priv->spacing; -- 2.30.2